package com.yfbao.horizon.skywalking.controller;


import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
public class WebHookController {

    @PostMapping("/alerting")
    public Boolean login(@RequestBody Object obj){
        log.info(JSONObject.toJSONString(obj));

        log.info("------------------------------------------------");
//        log.info("login request:"+username+","+password);
        return true;
    }
}
